<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="https://unpkg.com/vue@next"></script>
</head>
<body>
    <div id='app'>
        <p>count = {{count}}</p>
        <p v-once>count = {{count}}</p>
        <button @click='AddOne'>加一</button>
    </div>

    <script>
        const appComp = {
            data() {
                return {
                    count:10
                }
            },
            methods: {
                AddOne(){
                    this.count++
                }
            },
        }

        const app = Vue.createApp(appComp)
        app.mount('#app')
    </script>
</body>
</html>